<!doctype html>
<html class="default no-js">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>Query | mongodb</title>
	<meta name="description" content="Documentation for mongodb">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="stylesheet" href="../assets/css/main.css">
	<script async src="../assets/js/search.js" id="search-script"></script>
</head>
<body>
<header>
	<div class="tsd-page-toolbar">
		<div class="container">
			<div class="table-wrap">
				<div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
					<div class="field">
						<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
						<input id="tsd-search-field" type="text" />
					</div>
					<ul class="results">
						<li class="state loading">Preparing search index...</li>
						<li class="state failure">The search index is not available</li>
					</ul>
					<a href="../index.html" class="title">mongodb</a>
				</div>
				<div class="table-cell" id="tsd-widgets">
					<div id="tsd-filter">
						<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
						<div class="tsd-filter-group">
							<div class="tsd-select" id="tsd-filter-visibility">
								<span class="tsd-select-label">All</span>
								<ul class="tsd-select-list">
									<li data-value="public">Public</li>
									<li data-value="protected">Public/Protected</li>
									<li data-value="private" class="selected">All</li>
								</ul>
							</div>
							<input type="checkbox" id="tsd-filter-inherited" checked />
							<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
							<input type="checkbox" id="tsd-filter-externals" checked />
							<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
						</div>
					</div>
					<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
				</div>
			</div>
		</div>
	</div>
	<div class="tsd-page-title">
		<div class="container">
			<ul class="tsd-breadcrumb">
				<li>
					<a href="../modules.html">mongodb</a>
				</li>
				<li>
					<a href="Query.html">Query</a>
				</li>
			</ul>
			<h1>Class Query</h1>
		</div>
	</div>
</header>
<div class="container container-main">
	<div class="row">
		<div class="col-8 col-content">
			<section class="tsd-panel tsd-comment">
				<div class="tsd-comment tsd-typography">
					<dl class="tsd-comment-tags">
						<dt>internal</dt>
						<dd></dd>
					</dl>
				</div>
			</section>
			<section class="tsd-panel tsd-hierarchy">
				<h3>Hierarchy</h3>
				<ul class="tsd-hierarchy">
					<li>
						<span class="target">Query</span>
					</li>
				</ul>
			</section>
			<section class="tsd-panel-group tsd-index-group">
				<h2>Index</h2>
				<section class="tsd-panel tsd-index-panel">
					<div class="tsd-index-content">
						<section class="tsd-index-section ">
							<h3>Constructors</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-constructor tsd-parent-kind-class"><a href="Query.html#constructor" class="tsd-kind-icon">constructor</a></li>
							</ul>
						</section>
						<section class="tsd-index-section ">
							<h3>Properties</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="Query.html#awaitData" class="tsd-kind-icon">await<wbr>Data</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="Query.html#batchSize" class="tsd-kind-icon">batch<wbr>Size</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="Query.html#checkKeys" class="tsd-kind-icon">check<wbr>Keys</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="Query.html#documentsReturnedIn" class="tsd-kind-icon">documents<wbr>Returned<wbr>In</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="Query.html#exhaust" class="tsd-kind-icon">exhaust</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="Query.html#ignoreUndefined" class="tsd-kind-icon">ignore<wbr>Undefined</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="Query.html#maxBsonSize" class="tsd-kind-icon">max<wbr>Bson<wbr>Size</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="Query.html#noCursorTimeout" class="tsd-kind-icon">no<wbr>Cursor<wbr>Timeout</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="Query.html#ns" class="tsd-kind-icon">ns</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="Query.html#numberToReturn" class="tsd-kind-icon">number<wbr>ToReturn</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="Query.html#numberToSkip" class="tsd-kind-icon">number<wbr>ToSkip</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="Query.html#oplogReplay" class="tsd-kind-icon">oplog<wbr>Replay</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="Query.html#partial" class="tsd-kind-icon">partial</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="Query.html#pre32Limit" class="tsd-kind-icon">pre32<wbr>Limit</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="Query.html#query" class="tsd-kind-icon">query</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="Query.html#requestId" class="tsd-kind-icon">request<wbr>Id</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="Query.html#returnFieldSelector" class="tsd-kind-icon">return<wbr>Field<wbr>Selector</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="Query.html#serializeFunctions" class="tsd-kind-icon">serialize<wbr>Functions</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="Query.html#slaveOk" class="tsd-kind-icon">slave<wbr>Ok</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="Query.html#tailable" class="tsd-kind-icon">tailable</a></li>
							</ul>
						</section>
						<section class="tsd-index-section ">
							<h3>Methods</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="Query.html#incRequestId" class="tsd-kind-icon">inc<wbr>Request<wbr>Id</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="Query.html#nextRequestId" class="tsd-kind-icon">next<wbr>Request<wbr>Id</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="Query.html#toBin" class="tsd-kind-icon">to<wbr>Bin</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="Query.html#getRequestId" class="tsd-kind-icon">get<wbr>Request<wbr>Id</a></li>
							</ul>
						</section>
					</div>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Constructors</h2>
				<section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class">
					<a name="constructor" class="tsd-anchor"></a>
					<h3>constructor</h3>
					<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">new <wbr>Query<span class="tsd-signature-symbol">(</span>ns<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, query<span class="tsd-signature-symbol">: </span><a href="../interfaces/Document.html" class="tsd-signature-type" data-tsd-kind="Interface">Document</a>, options<span class="tsd-signature-symbol">: </span><a href="../interfaces/OpQueryOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">OpQueryOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="Query.html" class="tsd-signature-type" data-tsd-kind="Class">Query</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/c9a962f1/src/cmap/commands.ts#L78">src/cmap/commands.ts:78</a></li>
								</ul>
							</aside>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>ns: <span class="tsd-signature-type">string</span></h5>
								</li>
								<li>
									<h5>query: <a href="../interfaces/Document.html" class="tsd-signature-type" data-tsd-kind="Interface">Document</a></h5>
								</li>
								<li>
									<h5>options: <a href="../interfaces/OpQueryOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">OpQueryOptions</a></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="Query.html" class="tsd-signature-type" data-tsd-kind="Class">Query</a></h4>
						</li>
					</ul>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Properties</h2>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="awaitData" class="tsd-anchor"></a>
					<h3>await<wbr>Data</h3>
					<div class="tsd-signature tsd-kind-icon">await<wbr>Data<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/c9a962f1/src/cmap/commands.ts#L73">src/cmap/commands.ts:73</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="batchSize" class="tsd-anchor"></a>
					<h3>batch<wbr>Size</h3>
					<div class="tsd-signature tsd-kind-icon">batch<wbr>Size<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/c9a962f1/src/cmap/commands.ts#L68">src/cmap/commands.ts:68</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="checkKeys" class="tsd-anchor"></a>
					<h3>check<wbr>Keys</h3>
					<div class="tsd-signature tsd-kind-icon">check<wbr>Keys<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/c9a962f1/src/cmap/commands.ts#L67">src/cmap/commands.ts:67</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="documentsReturnedIn" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagOptional">Optional</span> documents<wbr>Returned<wbr>In</h3>
					<div class="tsd-signature tsd-kind-icon">documents<wbr>Returned<wbr>In<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/c9a962f1/src/cmap/commands.ts#L76">src/cmap/commands.ts:76</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="exhaust" class="tsd-anchor"></a>
					<h3>exhaust</h3>
					<div class="tsd-signature tsd-kind-icon">exhaust<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/c9a962f1/src/cmap/commands.ts#L74">src/cmap/commands.ts:74</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="ignoreUndefined" class="tsd-anchor"></a>
					<h3>ignore<wbr>Undefined</h3>
					<div class="tsd-signature tsd-kind-icon">ignore<wbr>Undefined<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/c9a962f1/src/cmap/commands.ts#L65">src/cmap/commands.ts:65</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="maxBsonSize" class="tsd-anchor"></a>
					<h3>max<wbr>Bson<wbr>Size</h3>
					<div class="tsd-signature tsd-kind-icon">max<wbr>Bson<wbr>Size<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/c9a962f1/src/cmap/commands.ts#L66">src/cmap/commands.ts:66</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="noCursorTimeout" class="tsd-anchor"></a>
					<h3>no<wbr>Cursor<wbr>Timeout</h3>
					<div class="tsd-signature tsd-kind-icon">no<wbr>Cursor<wbr>Timeout<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/c9a962f1/src/cmap/commands.ts#L72">src/cmap/commands.ts:72</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="ns" class="tsd-anchor"></a>
					<h3>ns</h3>
					<div class="tsd-signature tsd-kind-icon">ns<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/c9a962f1/src/cmap/commands.ts#L57">src/cmap/commands.ts:57</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="numberToReturn" class="tsd-anchor"></a>
					<h3>number<wbr>ToReturn</h3>
					<div class="tsd-signature tsd-kind-icon">number<wbr>ToReturn<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/c9a962f1/src/cmap/commands.ts#L60">src/cmap/commands.ts:60</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="numberToSkip" class="tsd-anchor"></a>
					<h3>number<wbr>ToSkip</h3>
					<div class="tsd-signature tsd-kind-icon">number<wbr>ToSkip<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/c9a962f1/src/cmap/commands.ts#L59">src/cmap/commands.ts:59</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="oplogReplay" class="tsd-anchor"></a>
					<h3>oplog<wbr>Replay</h3>
					<div class="tsd-signature tsd-kind-icon">oplog<wbr>Replay<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/c9a962f1/src/cmap/commands.ts#L71">src/cmap/commands.ts:71</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="partial" class="tsd-anchor"></a>
					<h3>partial</h3>
					<div class="tsd-signature tsd-kind-icon">partial<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/c9a962f1/src/cmap/commands.ts#L75">src/cmap/commands.ts:75</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="pre32Limit" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagOptional">Optional</span> pre32<wbr>Limit</h3>
					<div class="tsd-signature tsd-kind-icon">pre32<wbr>Limit<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/c9a962f1/src/cmap/commands.ts#L63">src/cmap/commands.ts:63</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="query" class="tsd-anchor"></a>
					<h3>query</h3>
					<div class="tsd-signature tsd-kind-icon">query<span class="tsd-signature-symbol">:</span> <a href="../interfaces/Document.html" class="tsd-signature-type" data-tsd-kind="Interface">Document</a></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/c9a962f1/src/cmap/commands.ts#L58">src/cmap/commands.ts:58</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="requestId" class="tsd-anchor"></a>
					<h3>request<wbr>Id</h3>
					<div class="tsd-signature tsd-kind-icon">request<wbr>Id<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/c9a962f1/src/cmap/commands.ts#L62">src/cmap/commands.ts:62</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="returnFieldSelector" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagOptional">Optional</span> return<wbr>Field<wbr>Selector</h3>
					<div class="tsd-signature tsd-kind-icon">return<wbr>Field<wbr>Selector<span class="tsd-signature-symbol">:</span> <a href="../interfaces/Document.html" class="tsd-signature-type" data-tsd-kind="Interface">Document</a></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/c9a962f1/src/cmap/commands.ts#L61">src/cmap/commands.ts:61</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="serializeFunctions" class="tsd-anchor"></a>
					<h3>serialize<wbr>Functions</h3>
					<div class="tsd-signature tsd-kind-icon">serialize<wbr>Functions<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/c9a962f1/src/cmap/commands.ts#L64">src/cmap/commands.ts:64</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="slaveOk" class="tsd-anchor"></a>
					<h3>slave<wbr>Ok</h3>
					<div class="tsd-signature tsd-kind-icon">slave<wbr>Ok<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/c9a962f1/src/cmap/commands.ts#L70">src/cmap/commands.ts:70</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="tailable" class="tsd-anchor"></a>
					<h3>tailable</h3>
					<div class="tsd-signature tsd-kind-icon">tailable<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/c9a962f1/src/cmap/commands.ts#L69">src/cmap/commands.ts:69</a></li>
						</ul>
					</aside>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Methods</h2>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="incRequestId" class="tsd-anchor"></a>
					<h3>inc<wbr>Request<wbr>Id</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">inc<wbr>Request<wbr>Id<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/c9a962f1/src/cmap/commands.ts#L124">src/cmap/commands.ts:124</a></li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Assign next request Id.</p>
								</div>
							</div>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="nextRequestId" class="tsd-anchor"></a>
					<h3>next<wbr>Request<wbr>Id</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">next<wbr>Request<wbr>Id<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/c9a962f1/src/cmap/commands.ts#L129">src/cmap/commands.ts:129</a></li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Peek next request Id.</p>
								</div>
							</div>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="toBin" class="tsd-anchor"></a>
					<h3>to<wbr>Bin</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">to<wbr>Bin<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Buffer</span><span class="tsd-signature-symbol">[]</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/c9a962f1/src/cmap/commands.ts#L139">src/cmap/commands.ts:139</a></li>
								</ul>
							</aside>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Buffer</span><span class="tsd-signature-symbol">[]</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="getRequestId" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> get<wbr>Request<wbr>Id</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">get<wbr>Request<wbr>Id<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/c9a962f1/src/cmap/commands.ts#L134">src/cmap/commands.ts:134</a></li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Increment then return next request Id.</p>
								</div>
							</div>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
						</li>
					</ul>
				</section>
			</section>
		</div>
		<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
			<nav class="tsd-navigation primary">
				<ul>
					<li class=" ">
						<a href="../modules.html">Exports</a>
					</li>
				</ul>
			</nav>
			<nav class="tsd-navigation secondary menu-sticky">
				<ul class="before-current">
				</ul>
				<ul class="current">
					<li class="current tsd-kind-class">
						<a href="Query.html" class="tsd-kind-icon">Query</a>
						<ul>
							<li class=" tsd-kind-constructor tsd-parent-kind-class">
								<a href="Query.html#constructor" class="tsd-kind-icon">constructor</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="Query.html#awaitData" class="tsd-kind-icon">await<wbr>Data</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="Query.html#batchSize" class="tsd-kind-icon">batch<wbr>Size</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="Query.html#checkKeys" class="tsd-kind-icon">check<wbr>Keys</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="Query.html#documentsReturnedIn" class="tsd-kind-icon">documents<wbr>Returned<wbr>In</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="Query.html#exhaust" class="tsd-kind-icon">exhaust</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="Query.html#ignoreUndefined" class="tsd-kind-icon">ignore<wbr>Undefined</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="Query.html#maxBsonSize" class="tsd-kind-icon">max<wbr>Bson<wbr>Size</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="Query.html#noCursorTimeout" class="tsd-kind-icon">no<wbr>Cursor<wbr>Timeout</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="Query.html#ns" class="tsd-kind-icon">ns</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="Query.html#numberToReturn" class="tsd-kind-icon">number<wbr>ToReturn</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="Query.html#numberToSkip" class="tsd-kind-icon">number<wbr>ToSkip</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="Query.html#oplogReplay" class="tsd-kind-icon">oplog<wbr>Replay</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="Query.html#partial" class="tsd-kind-icon">partial</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="Query.html#pre32Limit" class="tsd-kind-icon">pre32<wbr>Limit</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="Query.html#query" class="tsd-kind-icon">query</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="Query.html#requestId" class="tsd-kind-icon">request<wbr>Id</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="Query.html#returnFieldSelector" class="tsd-kind-icon">return<wbr>Field<wbr>Selector</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="Query.html#serializeFunctions" class="tsd-kind-icon">serialize<wbr>Functions</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="Query.html#slaveOk" class="tsd-kind-icon">slave<wbr>Ok</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="Query.html#tailable" class="tsd-kind-icon">tailable</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="Query.html#incRequestId" class="tsd-kind-icon">inc<wbr>Request<wbr>Id</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="Query.html#nextRequestId" class="tsd-kind-icon">next<wbr>Request<wbr>Id</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="Query.html#toBin" class="tsd-kind-icon">to<wbr>Bin</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="Query.html#getRequestId" class="tsd-kind-icon">get<wbr>Request<wbr>Id</a>
							</li>
						</ul>
					</li>
				</ul>
				<ul class="after-current">
				</ul>
			</nav>
		</div>
	</div>
</div>
<footer class="with-border-bottom">
	<div class="container">
		<h2>Legend</h2>
		<div class="tsd-legend-group">
			<ul class="tsd-legend">
				<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
				<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
				<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
				<li class="tsd-kind-accessor tsd-parent-kind-class"><span class="tsd-kind-icon">Accessor</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li>
				<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li>
				<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
				<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited accessor</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-constructor tsd-parent-kind-interface"><span class="tsd-kind-icon">Constructor</span></li>
				<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
				<li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li>
				<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
				<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
			</ul>
		</div>
	</div>
</footer>
<div class="container tsd-generator">
	<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
</div>
<div class="overlay"></div>
<script src="../assets/js/main.js"></script>
</body>
</html>